{extend name='table'}

{block name="button"}

{/block}

{block name="content"}
<div class="think-box-shadow">
    {include file='cangku/index_search'}
    <table id="OplogTable" data-url="{:request()->url()}" data-target-search="form.form-search"></table>
</div>
{/block}

{block name='script'}
<script>
    $(function () {
        $('#OplogTable').layTable({
            even: true, height: 'full',
            sort: {field: 'id', type: 'desc'},
            cols: [[
                {checkbox: true},
                {field: 'id', title: '序号', width: 130, sort: true, align: 'center'},
                {field: 'sncode', title: '{:lang("产品罐码")}'},
                {field: 'boxcode', title: '{:lang("产品箱码")}'},
                {field: 'ProductCD', title: '{:lang("产品料号")}'},
                {field: 'ProductName', title: '{:lang("产品名称")}'},
                {field: 'BatchNO', title: '{:lang("产品批次")}'},
                {field: 'ProductLine', title: '{:lang("产线")}'},
                {field: 'Norm', title: '{:lang("产品规格")}'},
                {field: 'ProductionDate', title: '{:lang("生产日期")}' },
                {field: 'is_send', title: '{:lang("是否在库")}' },
                // {field: 'pici_count', title: '{:lang("当前库存量")}', minWidth:200,},
                // {toolbar: '#toolbar', title: '{:lang("操作面板")}',width: 200, align: 'center',fixed: 'right'}
            ]]
        });
    });
</script>

{/block}